package com.wy.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wy.controller.dto.PetAuxiliaryCheckDTO;
import com.wy.entity.PetAuxiliaryCheck;
import com.wy.mapper.PetAuxiliaryCheckMapper;
import com.wy.service.IPetAuxiliaryCheckService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 宠物辅助检查明细表 服务实现类
 * </p>
 *
 * @author 王昭贵
 * @since 2023-04-20
 */
@Service
public class PetAuxiliaryCheckServiceImpl extends ServiceImpl<PetAuxiliaryCheckMapper, PetAuxiliaryCheck> implements IPetAuxiliaryCheckService {

    @Resource
    private PetAuxiliaryCheckMapper petAuxiliaryCheckMapper;

    public Page<PetAuxiliaryCheck> getPetAuxiliaryCheckPage(@Param("page") Page<PetAuxiliaryCheck> page, @Param("name") String name){
        return petAuxiliaryCheckMapper.getPetAuxiliaryCheckPage(page,name);
    }

    @Override
    public List<PetAuxiliaryCheckDTO> getPetAuxiliaryCheckFrontPage(int customerId) {
        return petAuxiliaryCheckMapper.getPetAuxiliaryCheckFrontPage(customerId);
    }
}
